package com.desay.pangoo.itmt.repository.rag;

import com.desay.pangoo.itmt.entity.rag.HotProblemEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 与热门问题相关持久化操作
 * @author uids1175
 */
@Repository
public interface HotProblemEntityRepository extends JpaSpecificationExecutor<HotProblemEntity>,
        PagingAndSortingRepository<HotProblemEntity, Long> {

    List<HotProblemEntity> findTop10ByOrderByHotDesc();

}
